file(GLOB_RECURSE HELLOTRIANGLE_HEADER_FILES ${CMAKE_CURRENT_LIST_DIR}/include/*.h)
file(GLOB_RECURSE HELLOTRIANGLE_SOURCE_FILES ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)

add_executable(02_HelloTriangle)

target_sources(02_HelloTriangle
    PRIVATE
        ${HELLOTRIANGLE_SOURCE_FILES}
        ${GLAD_SOURCE_FILES}
    PUBLIC
        ${HELLOTRIANGLE_HEADER_FILES}
        ${GLAD_HEADER_FILES}
)

target_link_libraries(02_HelloTriangle
    PUBLIC
        glfw
)